package com.javandad.app.shared.entity.search;

public class FreetextSearchProperties implements SearchProperties {
	private static final long serialVersionUID = 6153795287856341706L;
	
	public final static int SEARCH_FOR_ALL = 0;
	public final static int SEARCH_FOR_USER = 1;
	public final static int SEARCH_FOR_GROUP = 2;
	public final static int SEARCH_FOR_PROJECT = 3;

	public FreetextSearchProperties(String freetext, int type) {
		super();
		this.freetext = freetext;
		this.type = type;
	}
	protected FreetextSearchProperties() {
	}

	public void setFreetext(String freetext) {
		this.freetext = freetext;
	}

	public String getFreetext() {
		return freetext;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	private String freetext = null;
	private int type = FreetextSearchProperties.SEARCH_FOR_ALL;

	@Override
	public String toString()
	{
		return "Freetext: \"" + freetext + "\"";
	}
}
